package com.springtest.spi;

import java.util.*;

/**
 * project : my-learn
 * <p> 测试 </p>
 *
 * @author yisl
 * @date 2022-06-09【星期四】
 **/
public class TestCase {
    public static void main(String[] args) {
        ServiceLoader<Search> searches = ServiceLoader.load(Search.class);
        Iterator<Search> iterable = searches.iterator();
        while (iterable.hasNext()){
            Search search = iterable.next();
            search.searchDoc("test");
        }


    }
}
